import { S } from '../../s';
import { IPSAppDESearchView } from './ipsapp-desearch-view';
import { IPSAppDETabExplorerView } from './ipsapp-detab-explorer-view';
import { PSAppDEExplorerViewImpl } from './psapp-deexplorer-view-impl';

export class PSAppDETabExplorerViewImpl
  extends PSAppDEExplorerViewImpl
  implements IPSAppDETabExplorerView, IPSAppDESearchView
{
  get tabLayout():
    | 'TOP'
    | 'TOP_EMBEDDED'
    | 'LEFT'
    | 'BOTTOM'
    | 'RIGHT'
    | 'FLOW'
    | 'FLOW_NOHEADER'
    | 'NOHAEDER'
    | 'USER'
    | 'USER2' {
    return this.M.tabLayout;
  }

  get enableQuickSearch(): boolean {
    return this.M.enableQuickSearch;
  }

  get enableSearch(): boolean {
    return this.M.enableSearch;
  }

  get expandSearchForm(): boolean {
    return this.M.expandSearchForm;
  }

  get loadDefault(): boolean {
    return this.M.loadDefault;
  }
  get cls(): string {
    return 'PSAppDETabExplorerViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._2f || cls == S._37) return true;
    return super.instanceof(cls);
  }
}
